package com.survey.wxapp.controller;

import com.survey.common.annotation.Anonymous;
import com.survey.common.core.controller.BaseController;
import com.survey.common.core.domain.AjaxResult;
import com.survey.system.domain.SurHistoricalFeedback;
import com.survey.system.service.ISurFeedbackService;
import com.survey.system.service.ISurHistoricalFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Anonymous
@RestController
@RequestMapping("/wx/index")
public class WxIndexController extends BaseController {

    @Autowired
    private ISurHistoricalFeedbackService surHistoricalFeedbackService;
    @PostMapping("/historical")
    public AjaxResult historical() {
        List<SurHistoricalFeedback> surHistoricalFeedbacks = surHistoricalFeedbackService.selectHistoricalFeedback();
        return success(surHistoricalFeedbacks);
    }
}
